for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
// ZoneRulesException.js
"use strict";
// :: DEPENDENCIES
// load native dependencies
const path = require("path");
// load local dependencies
const DateTimeException = require(path.join(__dirname, "DateTimeException.js"));
// :: BASIC SETUP
/**
* Thrown to indicate a problem with time-zone configuration.
* @param {String} message - The message describing the <tt>ZoneRulesException</tt>.
* @param {Number} code - The unique code that identifies the cause of the <tt>ZoneRulesException</tt>.
* @augments DateTimeException
* @constructor
* @see https://docs.oracle.com/javase/8/docs/api/java/time/zone/ZoneRulesException.html
*/
const ZoneRulesException = function (message, code) {
DateTimeException.call(this, message, code);
};
// :: INHERITANCE
// set the DateTimeException 'class' as the parent in the prototype chain
ZoneRulesException.prototype = Object.create(DateTimeException.prototype);
ZoneRulesException.prototype.constructor = DateTimeException;
// :: PROTOTYPE
* The name used to identify a <tt>ZoneRulesException</tt>.
* @type {String}
* @default
ZoneRulesException.prototype.name = "ZoneRulesException";
// :: EXPORT
// export the ZoneRulesException 'class'
module.exports = ZoneRulesException;